package com.ev.asl.service;

import com.ev.asl.domain.AssemblyDailyDO;
import com.ev.asl.domain.MoldingDailyDO;
import com.ev.asl.dto.AssemblyDaily2Dto;
import com.ev.asl.dto.AssemblyDaily3Dto;
import com.ev.asl.dto.AssemblyDailyDto;
import com.ev.framework.utils.R;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @author 姚家乐
 * @since 2021/6/10 13:33
 */
public interface AssemblyDailyService {
    int save(AssemblyDailyDO entity);

    int save(AssemblyDailyDto dto);

    R save2(AssemblyDaily2Dto dto);

    R update2(AssemblyDaily3Dto dto);

    AssemblyDailyDO get(Long id);

    Map<String, Object> getDetailInfo(Long id);

    Map<String, Object> getDetailInfo2(Long id);

    List<AssemblyDaily2Dto> listDetail(Map<String, Object> param);

    Integer update(AssemblyDailyDO entity);

    Integer update(AssemblyDailyDto dto);

    int batchRemove(Long[] ids);

    int remove(Long id);

    int countForMap(Map<String, Object> params);

    List<Map<String, Object>> listForMap(Map<String, Object> param);

    Integer syncSaveToK32(AssemblyDailyDO entity);

//    Integer syncSaveToK3(AssemblyDailyDO entity);

    int totalForMap(Map<String, Object> param);

    void downloadExport(HttpServletResponse response, Long id);

}
